package com.tempjob.common.businesss.mongo.entity;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 工作经历
 * @author hui
 * @Date 2024/12/2 23:12
 **/
@CollectionName(value = "user_work_expetrience")
@Data
public class UserWorkExperience {

    @ID(type = IdTypeEnum.OBJECT_ID)
    @CollectionField("_id")
    private String id;

    @CollectionField("user_id")
    @ApiModelProperty("用户id")
    private String userId;

    @CollectionField("company_name")
    @ApiModelProperty("单位名称")
    private String companyName;

    @CollectionField("job_title")
    @ApiModelProperty("岗位名称")
    private String jobTitle;

    @CollectionField("start_time")
    @ApiModelProperty("入职时间")
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date startTime;

    @CollectionField("end_time")
    @ApiModelProperty("离职时间")
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date endTime;

    @CollectionField("job_content")
    @ApiModelProperty("工作内容描述")
    private String jobContent;

}
